//TIP 要<b>运行</b>代码，请按 <shortcut actionId="Run"/> 或
// 点击装订区域中的 <icon src="AllIcons.Actions.Execute"/> 图标。
public class 课后作业2 {
    public static void main(String[] args) {
        boolean a = ! true;
        System.out.println(a);

        boolean b = true & false;
        System.out.println(b);

        boolean c = false | true;
        System.out.println(c);

        boolean d = (true & false) | true;
        System.out.println(d);

        boolean e = false && (true | false);
        System.out.println(e);

        boolean f = !!true || false;
        System.out.println(f);

        boolean g = true && false && true;
        System.out.println(g);

        boolean h = false | false | true;
        System.out.println(h);

        byte i = 10;
        i += 13.14;
        System.out.println(i);
        i -= 5.2;
        System.out.println(i);

        int count = 0;
        count++;
        count++;
        count++;
        System.out.println("当前点赞人数为："+count);
        count--;
        System.out.println("当前点赞人数为："+count);

        int price = 5000;
        System.out.println("当前手机的价格是否符合用户要求:"+(price >= 4000 && price <= 6000));

        int year =2050;
        System.out.println("2050年是否为闰年:"+(year/4==0 && year%100!=0 || year/400==0));

        int j = 5;
        int k = 10;
        int jk =j > k ? j : k;
        System.out.println(jk);

        int l1 = 5;
        int l2 = 10;
        int l3 = 20;
        int max = l1 > l2 ? l1 : l2;
        max = max > l3 ? max : l3;
        System.out.println(max);

        int n1 = 100;
        long n2 = n1;
        float n3 = n2;
        System.out.println(n3);

        double x = 3.14159;
        int y = (int) x;
        byte z = (byte) 130;
        System.out.println("y=" + y);
        System.out.println("z=" + z);

        short s1 = 10;
        short s2 = 20;
        short s3 = (short) (s1 +s2);
        System.out.println(s3);

    }
}